// 权限相关的 API 接口
import request from '@/utils/request.js'

// 获取所有权限点 API
export const getAllPerAPI = () => request.get('/sys/permission')

// 添加权限的 API
export const addPerAPI = (obj) => request.post('/sys/permission', obj)

// 根据 id 获取权限详情 API
export const getPerAPI = (id) => request.get(`/sys/permission/${id}`)

// 根据 id 修改权限详情的 API
export const updatePerAPI = (obj) => request.put(`/sys/permission/${obj.id}`, obj)

// 根据 id 删除权限的 API
export const delPerAPI = (id) => request.delete(`/sys/permission/${id}`)
